<?php if($res_list){?>
<?php foreach($res_list as $country_rid=>$country_data){?>
	<?php echo form_hidden('_countries_rids[]', $country_rid)?>
	<?php echo $country_data['name']?>
	<?php if(isset($country_data['curourts']) and is_array($country_data['curourts'])){?>
		(
			<?php foreach($country_data['curourts'] as $curourt_rid=>$curourt_name){?>
				<?php echo form_hidden('_curourts_rids[]', $curourt_rid)?>
				<?php echo $curourt_name?>
				<?php if(!$readonly){?><a href="javascript: if(confirm('<?php echo lang('CUROURT_REMOVE_CONFIRM')?>')) list_processing('remove_curourt', '<?php echo $curourt_rid?>'); void(0);"><?php echo img('public/img/icons/delete_inline.gif', 'border="0"')?></a><?php }?>
			<?php }?>
		)
	<?php } else {?>
		<?php if(!$readonly){?><a href="javascript: if(confirm('<?php echo lang('COUNTRY_REMOVE_CONFIRM')?>')) list_processing('remove_country', '<?php echo $country_rid?>'); void(0);"><?php echo img('public/img/icons/delete_inline.gif', 'border="0"')?></a><?php }?>		
	<?php }?>
	<br>
<?php }?>
<?php } else {?>
<?php echo lang('LIST_EMPTY')?>
<?php }?>

